package cn.yili12.business.repository;

import cn.yili12.business.entity.FriendDb;
import cn.yili12.business.entity.UserDb;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FriendRepository extends JpaRepository<FriendDb, Long> {


    List<FriendDb> findByUserId(Long userId);

    FriendDb getByUserIdAndFriendId(Long userId, Long friendId);
}
